package com.yx.fx.sys.db.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yx.fx.common.model.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author 杨智杰
 * @since 2021/8/12 15:41
 */
@Data
@TableName("sys_user")
@Accessors(chain = true)
public class SysUser extends BaseEntity {

    @ApiModelProperty(value = "主键id")
    @TableField(value = "id")
    private Long id;

    @ApiModelProperty(value = "用户名")
    @TableField(value = "user_name")
    private String userName;

    @TableField(value = "photo")
    @ApiModelProperty(value = "头像")
    private String photo;

    @ApiModelProperty(value = "登录名")
    @TableField(value = "login_name")
    private String loginName;

    @ApiModelProperty(value = "登陆密码")
    @TableField(value = "password")
    private String password;

    @ApiModelProperty(value = "加密盐")
    @TableField(value = "sale")
    private String sale;

    @ApiModelProperty(value = "手机号")
    @TableField(value = "phone")
    private String phone;

    @TableField(value = "email")
    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "最终登录时间")
    @TableField(value = "login_time")
    private String loginTime;

    @ApiModelProperty(value = "最终登录IP")
    @TableField(value = "login_host")
    private String loginHost;

    @ApiModelProperty(value = "累计登录次数")
    @TableField(value = "login_count")
    private Integer loginCount;

    @ApiModelProperty(value = "当前状态(0禁用，1启用)")
    @TableField(value = "status")
    private Integer status;

    @ApiModelProperty(value = "所属银行")
    @TableField(value = "bank_id")
    private Integer bankId;
}
